<h1>New factory</h1>

<%= error_messages_for :factory %>

<% form_for(@factory) do |f| %>
  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Address</b><br />
    <%= f.text_field :address %>
  </p>

  <p>
    <b>Postalcode</b><br />
    <%= f.text_field :postalcode %>
  </p>

  <p>
    <b>Tel</b><br />
    <%= f.text_field :tel %>
  </p>

  <p>
    <b>Fax</b><br />
    <%= f.text_field :fax %>
  </p>

  <p>
    <b>Reg address</b><br />
    <%= f.text_field :reg_address %>
  </p>

  <p>
    <b>Website</b><br />
    <%= f.text_field :website %>
  </p>

  <p>
    <b>Mail</b><br />
    <%= f.text_field :mail %>
  </p>

  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', factories_path %>
